<?php
namespace App\Listener;

use Swoft\Event\EventHandlerInterface;
use Swoft\Event\EventInterface;
use Swoft\App;
use Swoft\Bean\Annotation\Listener;
use Swoft\Event\AppEvent;
/**
 * 必须是双引号
 * @Listener("first_test")
 */
class ApplicationLoaderListener implements EventHandlerInterface
{
    /**
     * @param EventInterface $event      事件对象
     */
    public function handle(EventInterface $event)
    {
        var_dump('应用启动了');
    }
}